package kuonta.web.forms;

import java.util.List;

import kuonta.domain.CentroCusto;

import org.cerberus.core.persistence.orm.Dao;
import org.cerberus.web.jsf.FacesUtil;
import org.cerberus.web.jsf.ManagedBean;
import org.cerberus.web.jsf.annotations.MB;

@SuppressWarnings("unchecked")
@MB(bean=CentroCusto.class)
public class FormCentroCusto extends ManagedBean<CentroCusto, Integer>{

	private static final long serialVersionUID = -4532023186274560905L;

	private Dao<CentroCusto, Integer> daoCentroCusto = (Dao)FacesUtil.getBean("basicosDao");
	
	@Override
	public List<CentroCusto> getList() {
		return daoCentroCusto.listByNamedQuery("listaCentroCusto");
	}

}